import { IsString, IsNotEmpty, IsOptional, MaxLength } from 'class-validator';

export class CreateLinkShareDto {
  @IsString()
  @IsNotEmpty({ message: '分享链接不能为空' })
  shareUrl: string;

  @IsString()
  @IsOptional()
  @MaxLength(500, { message: '分享感言不能超过500个字符' })
  shareMessage?: string;
}

export class LinkShareResponseDto {
  success: boolean;
  message: string;
  data?: {
    shareId: number;
    novelId: number;
    novelInfo: {
      id: number;
      title: string;
      author: string;
      cover?: string;
      description?: string;
      category?: string;
    };
  };
}